libsort.a:sort.o
	ar -rc libsort.a sort.o
	make sort
sort.o:sort.cpp
	g++ -c $^ -o $@
.PHONY:sort 
sort:
	mkdir ./include
	mkdir ./lib 
	mkdir ./tempfile
	cp *.h include 
	mv libsort.a lib
	mv *.o tempfile
.PHONY:clean 
clean:
	make clean-sort
	make clean-test
.PHONY:clean-sort 
clean-sort:
	rm -rf include 
	rm -rf lib 
	rm -rf tempfile 
.PHONY:clean-test 
clean-test:
	rm -f test